// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import HelloVuex from '@/components/vuex/HelloVuex'
import Axios from "axios";
import router from './router'
import { Button, Select } from 'element-ui';
import VueLazyLoad from 'vue-lazyload'

import store from '@/store'

Vue.use(Button)
Vue.use(Select)

Vue.use(VueLazyLoad)


Vue.config.productionTip = false
Vue.prototype.HOST = '/api'
Vue.prototype.$axios = Axios  //将Axios对象挂在到Vue原型对象中
// 自定义全局指令
// Vue.directive('focus', {
//   inserted:function (el) {
//     el.focus();
//   }
// })

/* eslint-disable no-new */



new Vue({
  el: '#app',
  render:h=>h(HelloVuex),
  // components: {App},
  // template: '<App/>',
  router,
  store
})
